package com.tubeonfire.entity;

import java.io.Serializable;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@Cached
public class Advertising implements Serializable {
	public static final long serialVersionUID = 1L;
	@Id
	private String id = "";

	/*
	 * Google Adsense or your seft advertising 1. Google Adsense 2. Your seft
	 * Ads (image...)
	 */
	@Indexed
	private int type = 1;

	/*
	 * Where to ads (home page, detail page...)
	 * 1. Homepage
	 */
	@Indexed
	private int place = 1;

	@Indexed
	private int position = 1;

	/*
	 * Your seft adsertising only - this is link title
	 */
	@Unindexed
	private String title = "";

	/*
	 * Your seft adsertising only - this is link
	 */
	@Unindexed
	private String link = "";

	/*
	 * Google Adsense script or image key.
	 */
	@Unindexed
	private String content = "";

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getPlace() {
		return place;
	}

	public void setPlace(int place) {
		this.place = place;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
